import {request} from "@/utils/request.js"

//轮播图
export const apiGetBanner = ()=>{
	return request({url:'/homeBanner'})
}

//公告
export const apiGetWallNewsList = (data)=>{
	return request({url:'/wallNewsList',data})
}

//每日推荐
export const apiGetRandomWall = ()=>{
	return request({url:'/randomWall'})
}

//专题精选  //首页和分类
export const apiGetClassify = (data)=>{
	return request({url:'/classify',data})
}

//分类列表
export const apiGetWallList = (data)=>{
	return request({url:'/wallList',data})
}

//为壁纸评分
export const apiGetSetupScore = (data)=>{
	return request({url:'/setupScore',data})
}

//壁纸下载
export const apiDownloadWall = (data)=>{
	return request({url:'/downloadWall',data})
}

//单个壁纸信息
export function apiDetailWall(data={}){
	return request({
		url:"/detailWall",
		data
	})
}

//用户信息
export const apiUserInfo= (data={})=>{
	return request({url:'//userInfo',data})
}

//我的下载/我的评分
export const apiUserWallList = (data={})=>{
	return request({url:'/userWallList',data})
}

//搜索
export const apiSearchWall = (data={})=>{
	return request({url:'/searchWall',data})
}